home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Snippets / QuickDraw / IconDimming / ReadMe < prev   
Encoding:
Text File  |  1992-07-15  |  1.1 KB  |  33 lines  |  [TEXT/KAHL]

  1.  
  2.     Application:    IconDimming
  3.  
  4.     Description:    In System 7, selected non-open files are shown as
  5.                     dimmed icons on the desktop.  This snippet shows
  6.                     two different ways to achieve the same results in
  7.                     an application.
  8.                     
  9.                     The first method uses a custom color search
  10.                     procedure in place of the current device's to
  11.                     create the dimming effect.  Once the image has
  12.                     been copied to the destination, the custom
  13.                     search proc is then removed.
  14.                     
  15.                     In the second method the RGB components of the
  16.                     icon's colortable entries are all dimmed before
  17.                     the image is copied into the destination.  The
  18.                     dimming algorithm used in this method simply
  19.                     darkens each RGB component in half then takes
  20.                     the two smaller components and darkens them
  21.                     in half again.  In System 7, this is similar
  22.                     to what the Finder does.
  23.  
  24.     Files:            IconDimming.π
  25.                     IconDimming.c
  26.                     IconDimming.π.rsrc
  27.  
  28.     Programmer:        Edgar Lee
  29.     Organization:    Apple Computer, Inc.
  30.     Department:        Developer Technical Support, DTS
  31.     Language:        C (Think C version 5.0.1)
  32.     Date Created:    2-27-92
  33.